<%@ Page Language="c#" Codebehind="~/SiteSeeker/Compatibility/EPiServer/SiteSeekerSettings.aspx.cs" AutoEventWireup="False"
    Inherits="SiteSeeker.Compatibility.SiteSeekerSettings" Title="SiteSeeker Settings" %>
<%@ Register TagPrefix="episerverui" Namespace="EPiServer.UI.WebControls" Assembly="EPiServer.UI" %> 
<asp:Content ID="Header1" ContentPlaceHolderID="HeaderContentRegion" runat="server">
<style type="text/css">
input[type="text"], input[type="password"] {
    width: 99%;
    box-sizing: border-box;
    }
.EP-systemMessage h2 {
    margin-top: 0;
    }
.EP-systemMessage div {
    margin: 0.8em 0;
    }
.EP-systemMessage div.details {
    border: 1px solid #575757;
    background: #eee;
    padding: 0.4em 1.6em;
    }
table#settings-table {
    border-spacing: 0.7em;
    width: 40em;
}
h3 {
    margin-top: 0.7em;
    border-bottom:1px solid #BEBEBE;
}
#module-info {
    float: left;
    font-size: 0.9em;
    width: 37em;
    text-align: left;
}

</style>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="FullRegion" runat="server">
<div class="epi-contentContainer epi-padding">
    <h1>
        <%= EPiServer.Global.EPLang.Translate("/siteseeker/admin/heading")%>
    </h1>
    <asp:Panel runat="server" ID="checkConnectionMessage" Visible="False" CssClass="EP-systemMessage">
        <h2>
            <asp:Label runat="server" ID="lbCheckConnection"></asp:Label></h2>
        <episerverui:toolbutton id="btnSaveConnectionTest" skinid="Save" runat="server" onclick="btnSave_Click" />
        <asp:PlaceHolder runat="server" ID="phConnectionErrorExplanation">
            <div>
                <EPiServer:Translate ID="Translate1" Text="/siteseeker/admin/connectionerrorexplanation"
                    runat="server" />
                <asp:HyperLink NavigateUrl="http://support.euroling.se/" Target="_blank" runat="server">SiteSeeker Support</asp:HyperLink>
            </div>
        </asp:PlaceHolder>
        <div class="details"><asp:Label runat="server" ID="lbCheckConnectionDetails"></asp:Label></div>
    </asp:Panel>
    <asp:Panel runat="server" ID="saveMessage" Visible="False" CssClass="EP-systemMessage">
        <episerver:translate ID="Translate21" text="/siteseeker/admin/savemessage" runat="server" />
    </asp:Panel>
    <table cellpadding="0" id="settings-table">
        <tr>
            <td colspan="3">
                <h3>
                    <episerver:translate ID="Translate10" text="/siteseeker/admin/webservice" runat="server" />
                </h3>
            </td>
        </tr>
        <tr>
            <td width="40">
            </td>
            <td>
                <asp:Label AssociatedControlID="tbUrl" ID="labelUrl" runat="server">
                    <episerver:translate ID="Translate9" text="/siteseeker/admin/url" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbUrl" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label AssociatedControlID="tbUsername" ID="labelUsername" runat="server">
                    <episerver:translate ID="Translate2" text="/siteseeker/admin/username" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbUsername" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label AssociatedControlID="tbPassword" ID="labelPassword" runat="server">
                    <episerver:translate ID="Translate8" text="/siteseeker/admin/password" runat="server" />:
                </asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbPassword" TextMode="Password" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td align="right">
                <EPiServerUI:ToolButton id="btnCheckConnection" SkinID="Check" runat="server" OnClick="btnCheckConnection_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <h3>
                    <episerver:translate ID="Translate7" text="/siteseeker/admin/security" runat="server" />
                </h3>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <asp:CheckBox ID="cbCheckPermissions" runat="server" Checked="True" />
                <asp:Label AssociatedControlID="cbCheckPermissions" ID="labelCheckPermissions" runat="server">
                    <episerver:translate ID="Translate11" text="/siteseeker/admin/checkpermissions" runat="server" />
                </asp:Label>
            </td>
        </tr>
        <tr id="crawleruser">
            <td>
            </td>
            <td style="padding-left: 20px;">
                <asp:Label ID="labelCrawlerUsername" AssociatedControlID="tbCrawlerUsername" runat="server">
                    <episerver:translate ID="Translate6" text="/siteseeker/admin/crawlerusername" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbCrawlerUsername" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <em>
                    <episerver:translate ID="Translate12" text="/siteseeker/admin/securityserver" runat="server" />
                    <strong>
                        <%= SiteUrl %>
                    </strong></em>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <em>
                    <episerver:translate ID="Translate13" text="/siteseeker/admin/securitynote" runat="server" />
                </em>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <h3>
                    <episerver:translate ID="Translate14" text="/siteseeker/admin/categories" runat="server" />
                </h3>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <asp:CheckBox ID="cbEPiCategories" runat="server" Checked="True" />
                <asp:Label ID="labelEPiCategories" AssociatedControlID="cbEPiCategories" runat="server">
                    <episerver:translate ID="Translate3" text="/siteseeker/admin/epicategories" runat="server" />
                </asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <asp:CheckBox ID="cbTopCategories" runat="server" Checked="True" />
                <asp:Label ID="labelTopCategories" AssociatedControlID="cbTopCategories" runat="server">
                    <episerver:translate ID="Translate4" text="/siteseeker/admin/topcategories" runat="server" />
                </asp:Label>
            </td>
        </tr>
        <tr id="topcategories">
            <td>
            </td>
            <td style="padding-left: 20px;">
                <asp:Label AssociatedControlID="tbTopCategoriesGroup" ID="labelTopCategoriesGroup" runat="server">
                    <episerver:translate ID="Translate15" text="/siteseeker/admin/topcategoriesgroup" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbTopCategoriesGroup" />
                <sup>
                    <episerver:translate ID="Translate16" text="/siteseeker/admin/optional" runat="server" />
                </sup>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <asp:CheckBox ID="cbDynCategories" runat="server" Checked="True" />
                <asp:Label ID="label1" AssociatedControlID="cbDynCategories" runat="server">
                    <episerver:translate ID="Translate23" text="/siteseeker/admin/dyncategories" runat="server" />
                </asp:Label>
            </td>
        </tr>
        <tr id="Tr1">
            <td>
            </td>
            <td style="padding-left: 20px;">
                <asp:Label AssociatedControlID="tbDynCategoriesPropName" ID="label2" runat="server">
                    <episerver:translate ID="Translate24" text="/siteseeker/admin/dyncategoriespropname" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbDynCategoriesPropName" />
            </td>
        </tr>        
        <tr>
            <td colspan="3">
                <h3>
                    <episerver:translate ID="Translate17" text="/siteseeker/admin/links" runat="server" />
                </h3>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <asp:CheckBox ID="cbUrlRewrite" runat="server" Checked="False" />
                <asp:Label ID="labelUrlRewrite" AssociatedControlID="cbUrlRewrite" runat="server">
                    <episerver:translate ID="Translate5" text="/siteseeker/admin/urlrewrite" runat="server" />
                </asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="padding-left: 20px;">
                <asp:Label ID="labelUrlMatch" AssociatedControlID="tbUrlMatch" runat="server">
                    <episerver:translate ID="Translate18" text="/siteseeker/admin/urlmatch" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbUrlMatch" Width="250" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="padding-left: 20px;">
                <asp:Label ID="labelUrlReplace" AssociatedControlID="tbUrlReplace" runat="server">
                    <episerver:translate ID="Translate19" text="/siteseeker/admin/urlreplace" runat="server" />
                </asp:Label>:
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbUrlReplace" Width="250" /></td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="2">
                <em>
                    <episerver:translate ID="Translate22" text="/siteseeker/admin/rewritenote" runat="server" />
                </em>
            </td>
        </tr>
    </table>
    <div class="epi-buttonContainer">
        <div id="module-info">
            <episerver:translate ID="Translate20" text="/siteseeker/admin/version" runat="server" />:
            <asp:Label runat="server" ID="lbVersion" />
        </div>
        <EPiServerUI:ToolButton id="btnSave" SkinID="Save" runat="server" OnClick="btnSave_Click" />
    </div>               

</div>
</asp:Content>
